﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FX.CC.Andon.Entity.Service
{
    [Serializable]
    public class MessageWrapper
    {
        /// <summary>
        /// 消息ID
        /// </summary>
        public Guid MsgID { get; set; }

        /// <summary>
        /// 消息类型
        /// </summary>
        public MsgType MsgTypeObj { get; set; }

        /// <summary>
        /// 异常ID
        /// </summary>
        public Guid EventID { get; set; }

        /// <summary>
        /// 车间名称
        /// </summary>
        public string WSName { get; set; }

        /// <summary>
        /// 产线
        /// </summary>
        public string LineName { get; set; }

        /// <summary>
        /// 设备编号
        /// </summary>
        public string EqCode { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        public string EqName { get; set; }

        /// <summary>
        /// 异常类别
        /// </summary>
        public string ETypeName { get; set; }

        /// <summary>
        /// 异常明细
        /// </summary>
        public string DetailName { get; set; }

        /// <summary>
        /// 异常触发时间
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 触发人
        /// </summary>
        public string StartUserName { get; set; }

        /// <summary>
        /// 发信人
        /// </summary>
        public string Sender { get; set; }

        /// <summary>
        /// 信息生成时间（发信时间）
        /// </summary>
        public DateTime GenTime{get; set;}

        /// <summary>
        /// 接收人
        /// </summary>
        public string Receiver { get; set; }

        /// <summary>
        /// 接收人手机号码
        /// </summary>
        public string MobileNo { get; set; }
    }

    [Serializable]
    public class MsgResponseWrapper {
        public DateTime GetTime { get; set; }
        public MessageWrapper[] MsgArr { get; set; }
    }

    [Serializable]
    public enum MsgType : int
    {
        ProcessTimeoutMsg = 0,
        HelpMsg = 1,
        SignTimeoutMsg = 2
    }
}
